/**
 * <strong>Title : Operation.java<br>
 * </strong> <strong>Package : cn.b.sky.mes.cm.model<br>
 * </strong> <strong>Description : </strong>@类注释说明写在此处@<br>
 * <strong>Create on : 2015年9月30日 下午1:33:29<br>
 * </strong>
 * <p>
 * @author dapeng.li<br>
 * @version <strong>v1.0.0</strong><br>
 * <br>
 *          <strong>修改历史:</strong><br>
 *          修改人 | 修改日期 | 修改描述<br>
 *          -------------------------------------------<br>
 * <br>
 * <br>
 */
package cn.b.sky.mes.cm.model;

import java.io.Serializable;

import cn.b.sky.common.model.ImeCommon;
import cn.b.sky.user.SecurityContextUtil;
import org.apache.commons.lang3.StringUtils;

/**
 * <strong>Title : Operation.java<br></strong>
 * <strong>Package : cn.b.sky.mes.cm.model<br></strong>
 * <strong>Description : </strong>工序实体<br> 
 * <strong>Create on : 2015年9月30日 下午1:33:29<br></strong>
 * <p>
 * @author dapeng.li<br>
 * @version <strong>v1.0.0</strong><br>
 * <br>
 * <strong>修改历史:</strong><br>
 * 修改人 | 修改日期 | 修改描述<br>
 * -------------------------------------------<br>
 * <br>
 * <br>
 */
public class Operation extends ImeCommon implements Serializable {

  /** 
  * @Fields serialVersionUID 
  * @creator     :dapeng.li
  */
  private static final long serialVersionUID = 7216146025050073799L;

  /**
   * 工序编号 NVARCHAR(20)
   */
  private String operationCode;

  /**
   * 工序描述 NVARCHAR(60)
   */
  private String operationText;

  /**
   *工序类型 ： 生产，质量 
   */
  private String operationTypeEcode;

  /**
   *工序类型 ： 生产，质量 描述
   */
  private String operationTypeText;
  
  /**
   * 标准产能
   */
  private Integer standardCapacity;

  /**
   * 标准用时
   */
  private Integer standardHours; 
  
  public Integer getStandardCapacity() {
    return standardCapacity;
  }

  public void setStandardCapacity(Integer standardCapacity) {
    this.standardCapacity = standardCapacity;
  }

  public Integer getStandardHours() {
    return standardHours;
  }

  public void setStandardHours(Integer standardHours) {
    this.standardHours = standardHours;
  }

  /** 
  * @return operationCode
  */
  public String getOperationCode() {
    return StringUtils.upperCase(this.operationCode);
  }

  /** 
  * @return siteCode
  */
  @Override
  public String getSiteCode() {
    if (StringUtils.isEmpty(super.getSiteCode())) {
      return SecurityContextUtil.getSiteCode();
    }
    return super.getSiteCode();
  }

  /** 
  * @param operationCode 要设置的 operationCode
  */
  public void setOperationCode(String operationCode) {
    this.operationCode = StringUtils.upperCase(operationCode);
  }

  /** 
  * @return operationText
  */
  public String getOperationText() {
    return operationText;
  }

  /** 
  * @param operationText 要设置的 operationText
  */
  public void setOperationText(String operationText) {
    this.operationText = operationText;
  }

  /** 
  * @return operationTypeEcode
  */
  public String getOperationTypeEcode() {
    return operationTypeEcode;
  }

  /** 
  * @param operationTypeEcode 要设置的 operationTypeEcode
  */
  public void setOperationTypeEcode(String operationTypeEcode) {
    this.operationTypeEcode = operationTypeEcode;
  }

  public String getOperationTypeText() {
    return operationTypeText;
  }

  public void setOperationTypeText(String operationTypeText) {
    this.operationTypeText = operationTypeText;
  }

}
